using System;

//CID 0140 //2008.12.08 //Begin
namespace InfoJetSoft.Service.XPath.Tokens
{
	/// <summary>
	/// Summary description for WhitespaceReader.
	/// </summary>
	class WhitespaceReader
	{
		public static int Skip( TokenReader tokenReader )
		{
			int nextChar = tokenReader.LookupNextChar(1);
			while( nextChar != -1 && CharUtil.IsWhiteSpace( nextChar ) )
			{
				tokenReader.MoveNextIndex(1);
				nextChar = tokenReader.LookupNextChar(1);
			}
			return nextChar;
		}
	}
}
//CID 0140 //2008.12.08 //End
